<?php
include "includes/ui.php";

echo headerHTML("master","ชั้นเรียน");
 
?>

<!-- Moldule: Popup -->
<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel"><i class="icon-cog"></i> ชั้นเรียน</h3>
        </div>
		<form class="form-horizontal" style="margin-bottom: 0px!important;">
        <div class="modal-body">
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ปีการศึกษา</label>
					<div class="controls">
							<select id='cboYear' style='width:100px;'></select>
					</div>
			</div>
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ระดับชั้น</label>
					<div class="controls">
							<select name="ClassLevel" id="cboClassLevel" style="width:180px !important;"></select>
					</div>
			</div>

		   <div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ห้องเรียน</label>
					<div class="controls">
							<input type="text" id="txtRoom" placeholder="ห้องเรียน" required maxlength="2">
					</div>
			</div>                       
		
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> จำนวนนักเรียน</label>
					<div class="controls">
							<input type="text" id="txtAmount" placeholder="จำนวนนักเรียนในแต่ละห้อง" required maxlength="2">
					</div>
			</div>
			
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ครูประจำชั้น</label>
					<div class="controls">
						<select name="cboTeacher1" id="cboTeacher1" style="width:200px !important;"></select>	 
					</div>
			</div>
			
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ครูผู้ช่วย</label>
					<div class="controls">
						<select name="cboTeacher2" id="cboTeacher2" style="width:200px !important;"></select>	 
					</div>
			</div>
			
			<div class="control-group">
					<label class="control-label" for="inputRepeat"><i class="icon-double-angle-right"></i> สถานะการใช้งาน</label>
					<div class="controls">
						<label class="radio">
							<span>
								<input type="radio" name="chk"  value="Y" id='chkY' checked> 
							</span>
						   ใช้งาน
						</label>
						  <label class="radio">
							<span>
								<input type="radio" name="chk" value="N"  id="chkN"> 
							</span>
						   ยกเลิกใช้งาน
						</label>
					</div>
			</div>

           
        </div>

        <div class="modal-footer">
			<button type='submit' class="btn btn-primary" id="btnSave">บันทึก</button>
			<button class="btn" data-dismiss="modal" aria-hidden="true">ยกเลิก</button>
        </div>
      </form>			
</div> 
<!-- / Module: Popup --> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> ชั้นเรียน</h3>
            <div class='tmp' style='float:right'>
				<a href="#"  ><button class="btn"  style='width:80px;' id='btnPrintDraft' tooltip="Add">พิมพ์</button></a>
				<?php if ($add == 1){ ?>
                <a href="#popup" data-toggle="modal"><button class="btn btn-primary" id="btnAdd"   >เพิ่ม</button></a>
				<?php }?>
            </div>
        </div>
        <!-- /  : Top Bar -->
        <!-- Pie: Content -->
        <div class="well no-padding">
			<div class="span12">
				<div class="row-fluid">
					<div class="control-group" style='border-bottom:0px;padding-bottom:5px;'>
						<label class="control-label" style='padding-top:5px;' for="inputName"><i class="icon-double-angle-right"></i>ปีการศึกษา</label>
						<div class="controls">
							<select id="cboYear_Search" style="width:100px !important;"></select>
							
							<span class="help-inline" style="font-weight:bold;margin-left:40px;">ระดับชั้น&nbsp;</span>
							<select id="cboClassLevel_Search" style="width:180px !important;"></select>
							
							<button class="btn btn-inverse" id="btnSearch" style='margin-left:50px;margin-top:-10px;padding-bottom:5px;' rel="tooltip" title=""   data-original-title="ค้นหาข้อมูล"><i class="icon-search"></i></button> 
						</div>
					</div>
				</div>
			</div>
		
           <table class="data-table" id="resultData">
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:30px !important;'>#</th>
						<th style='color:#333 !important;'>0</th>
						<th style='color:#333 !important;'>0</th>
						<th style='color:#333 !important;width:100px !important;' >ปีการศึกษา</th>
                        <th style='color:#333 !important;width:100px !important;' >ระดับชั้นเรียน</th>
                        <th style='color:#333 !important;width:60px !important;' class="center">ห้อง</th>
                        <th style='color:#333 !important;width:150px !important;' class="center">จำนวนนักเรียน</th>                         
						<th style='color:#333 !important;' class="text-center">ครูประจำชั้น</th>     
						<th style='color:#333 !important;' class="text-center">ครูผู้ช่วย</th>     
						<th style='color:#333 !important;width:90px !important;' class="center">สถานะ</th>    
						<th style='color:#333 !important;'>0</th>
						<th style='color:#333 !important;'>0</th>
                        <th style='color:#333 !important;width:60px !important;' class="center">แก้ไข</th>
                        <th style='color:#333 !important;width:60px !important;' class="center" >ลบ</th>
						
                    </tr>
                </thead>
                <tbody>
                   
                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/myScript/js_class_room.js"></script>


</html>